package com.marvels.product.param.dao;

import java.util.List;

import com.marvels.common.exception.MarvelsBusinessException;
import com.marvels.product.param.dto.McptPaymentSequenceDTO;
import com.marvels.product.param.dto.McptPaymentSequenceItemDTO;
import com.marvels.product.param.dto.McptProduct;

public interface McptPaymentSequenceItemMapper {

    McptPaymentSequenceItemDTO selectByPrimaryKey(Long id);
    
    /**
     * 批量插入还款余额信息
     * @param itemList
     * @return
     */
    int insertBatchItem(List<McptPaymentSequenceItemDTO> list);

	List<McptPaymentSequenceItemDTO> getListByCode(String sequenceCode);
	
	int updateBatchItem(List<McptPaymentSequenceItemDTO> list);
	
	/**根据sequencecode查询还款顺序
	 * @author 娄凯琦
	 * @date 2018年5月9日  
	 * @return
	 * @throws MarvelsBusinessException
	 */
	public McptPaymentSequenceDTO selectPaymentSequenceByPaymentSeq(McptProduct dto);
  
}